<template>
	<view class="logo-page special-bg">
		<view class="logo">
			<u--image :showLoading="true" radius="100px" src="/static/logo.png" width="200rpx"
				height="200rpx"></u--image>
		</view>
		<view class="title font-text">欢迎来到ChatBaseX</view>
		<view class="info-btn">
			<view class="button" @click="gotellogin()">
				<u--image :showLoading="true" src="/static/home/home-tel.png" width="36rpx" height="36rpx"></u--image>
				<text>手机注册</text>
			</view>
			<view class="divider">
				<u-divider text="或登录" textSize="12" textColor="#ffffff" lineColor="#ffffff"></u-divider>
			</view>
			<view class="button" @click="goemaillogin()">
				<u--image :showLoading="true" src="/static/home/home-email.png" width="36rpx" height="36rpx"></u--image>
				<text>邮箱注册</text>
			</view>
		</view>
		<view class="policy-text">
			登录即标识您同意我们的<text @click="gorichtext('use')">《使用条款》</text>还有我们的 <text
				@click="gorichtext('policy')">《隐私与政策》</text>
		</view>
		<view class="goregister" @click="gologin">
			已有账户？现在登录
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		onLoad() {

		},
		methods: {
			gorichtext(e) {
				uni.navigateTo({
					url: '/pages/richtext/index?name=' + e
				})
			},
			gotellogin() {
				uni.navigateTo({
					url: '/pages/register/telregister/index'
				})
			},
			goemaillogin() {
				uni.navigateTo({
					url: '/pages/register/mailregister/index'
				})
			},
			gologin() {
				uni.navigateTo({
					url: '/pages/login/index'
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.logo-page {
		position: relative;

		.logo {
			width: 200rpx;
			height: 200rpx;
			padding: 200rpx 0;
			margin: 0 auto;

			image {
				width: 200rpx;
				height: 200rpx;
				border-radius: 100%;
			}
		}

		.title {
			font-size: 40rpx;
			text-align: center;
			margin-top: 50rpx;
			color: #FFFFFF;
			font-weight: 900;
		}

		.policy-text {
			font-size: 24rpx;
			padding: 30rpx 40rpx;
			color: #FFFFFF;

			text {
				color: #2979FF;
			}
		}

		.goregister {
			position: absolute;
			left: 0;
			right: 0;
			bottom: 60rpx;
			margin: 0 auto;
			color: #FFFFFF;
			font-size: 24rpx;
			text-align: center;
		}

		.info-btn {
			margin-top: 80rpx;
			padding: 0 30rpx;

			.divider {
				width: 60%;
				margin: 0 auto;
			}

			.button {
				width: 100%;
				height: 110rpx;
				text-align: center;
				line-height: 110rpx;
				background-color: #fff;
				border-radius: 100rpx;
				color: #333;
				font-size: 28rpx;
				display: flex;
				align-items: center;
				justify-content: center;

				text {
					margin-left: 10rpx;
				}
			}
		}
	}
</style>